<?PHP
require_once('../controller/ControllerCategoria.php');

class CreateHTML
{
        /*************************************************************************
        * Name: __construct
        * Description: Construtor da Classe. Inicializar os Atributos.
        * Parameters: Nenhum
        * Returns: Nenhum
        * Author: Padrão
        * Last Modified: 06/04/2012 - Padrão
        *************************************************************************/
        public function __construct()
        {			
        }


        /*************************************************************************
        * Name: 
        * Description: 
        * Parameters:
        * Returns:
        * Author: 
        * Last Modified: 00/00/00 - Autor da Modificação
        *************************************************************************/
        public function Nome()
        {
        }


         /*************************************************************************
        * Name: 
        * Description: 
        * Parameters:
        * Returns:
        * Author: 
        * Last Modified: 00/00/00 - Autor da Modificação
        *************************************************************************/
        public function optionsCategorias()
        {
            $objCategoria = new ControllerCategoria();
            $result = $objCategoria->select();
            
            foreach($result AS  $value)
            {
                echo "<option value='". $value->getIdCategoria() ."'>". $value->getCategoria() ."</option>";
            }
        }
        
     
       public function msgCadSucesso($id)
       {
           if($id==1)
               echo "Cadastro Realizado com Sucesso.";
           else if($id==2)
               echo "Campo Vazio.";
       }
}
?>